package edu.asu.sapa.sas;

public class Condition {

	protected int valueID;
	protected Variable variable;
	
//	public Condition() {
//		valueID = -1; // undefined condition
//	}
	
	public Condition(Variable variable, int value) {
		this.variable = variable;
		valueID = value;
	}
	
	public int getValueID() {
		return valueID;
	}
	
	public void setValueID(int value) {
		valueID = value;
	}
	
	public int getVarID() {
		return variable.getID();
	}
	
	public Variable getVariable() {
		return variable;
	}
	
	@Override
	public String toString() {
		return "var" + variable.getID() + "=" + valueID;
	}
	
}
